package com.sun.showcase.client.domain.mall;

import org.apache.commons.lang3.builder.EqualsBuilder;
import org.apache.commons.lang3.builder.HashCodeBuilder;
import org.apache.commons.lang3.builder.ToStringBuilder;

public class Address implements java.io.Serializable{
	private static final long serialVersionUID = 5454155825314635342L;
    /**
     * 主键ID       db_column: id 
     */	
	private java.lang.String id;
    /**
     * 收货人区域名称       db_column: receiptor_area_name 
     */	
	private java.lang.String receiptorAreaName;
    /**
     * 收货人区域编码       db_column: receiptor_area_code 
     */	
	private java.lang.String receiptorAreaCode;
    /**
     * 收货人详细地址       db_column: receiptor_addres 
     */	
	private java.lang.String receiptorAddres;
    /**
     * 邮政编码       db_column: postal_code 
     */	
	private java.lang.String postalCode;
    /**
     * 收货人姓名       db_column: receiptor_name 
     */	
	private java.lang.String receiptorName;
    /**
     * 收货人电话       db_column: receiptor_phone 
     */	
	private java.lang.String receiptorPhone;
    /**
     * 用户id       db_column: user_id 
     */	
	private java.lang.String userId;
    /**
     * 用户名       db_column: user_name 
     */	
	private java.lang.String userName;
    /**
     * 顺序       db_column: order_num 
     */	
	private java.lang.Integer orderNum;
    /**
     * 是否默认地址（0：否 1：是）       db_column: if_default_address 
     */	
	private java.lang.String ifDefaultAddress;
    /**
     * 有效状态(默认为0 未删除  1 删除）       db_column: active_flag 
     */	
	private java.lang.String activeFlag;
    /**
     * 添加时间       db_column: create_date 
     */	
	private java.util.Date createDate;
	//columns END

	public Address(){
	}

	public Address(
		java.lang.String id
	){
		this.id = id;
	}

	public void setId(java.lang.String value) {
		this.id = value;
	}
	
	public java.lang.String getId() {
		return this.id;
	}
	public void setReceiptorAreaName(java.lang.String value) {
		this.receiptorAreaName = value;
	}
	
	public java.lang.String getReceiptorAreaName() {
		return this.receiptorAreaName;
	}
	public void setReceiptorAreaCode(java.lang.String value) {
		this.receiptorAreaCode = value;
	}
	
	public java.lang.String getReceiptorAreaCode() {
		return this.receiptorAreaCode;
	}
	public void setReceiptorAddres(java.lang.String value) {
		this.receiptorAddres = value;
	}
	
	public java.lang.String getReceiptorAddres() {
		return this.receiptorAddres;
	}
	public void setPostalCode(java.lang.String value) {
		this.postalCode = value;
	}
	
	public java.lang.String getPostalCode() {
		return this.postalCode;
	}
	public void setReceiptorName(java.lang.String value) {
		this.receiptorName = value;
	}
	
	public java.lang.String getReceiptorName() {
		return this.receiptorName;
	}
	public void setReceiptorPhone(java.lang.String value) {
		this.receiptorPhone = value;
	}
	
	public java.lang.String getReceiptorPhone() {
		return this.receiptorPhone;
	}
	public void setUserId(java.lang.String value) {
		this.userId = value;
	}
	
	public java.lang.String getUserId() {
		return this.userId;
	}
	public void setUserName(java.lang.String value) {
		this.userName = value;
	}
	
	public java.lang.String getUserName() {
		return this.userName;
	}
	public void setOrderNum(java.lang.Integer value) {
		this.orderNum = value;
	}
	
	public java.lang.Integer getOrderNum() {
		return this.orderNum;
	}
	public void setIfDefaultAddress(java.lang.String value) {
		this.ifDefaultAddress = value;
	}
	
	public java.lang.String getIfDefaultAddress() {
		return this.ifDefaultAddress;
	}
	public void setActiveFlag(java.lang.String value) {
		this.activeFlag = value;
	}
	
	public java.lang.String getActiveFlag() {
		return this.activeFlag;
	}
	public void setCreateDate(java.util.Date value) {
		this.createDate = value;
	}
	
	public java.util.Date getCreateDate() {
		return this.createDate;
	}

	public String toString() {
		return ToStringBuilder.reflectionToString(this);
	}
	
	public int hashCode() {
		return new HashCodeBuilder()
			.append(getId())
			.toHashCode();
	}
	
	public boolean equals(Object obj) {
		if(obj instanceof Address == false) return false;
		if(this == obj) return true;
		Address other = (Address)obj;
		return new EqualsBuilder()
			.append(getId(),other.getId())
			.isEquals();
	}
}

